package com.yjj.demo.common.annotation;

import java.lang.annotation.*;

/**
 * qps 限制器
 * @date 2023/1/19 14:25
 * @return
 **/
@Documented
@Target(value = {ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface QPSLimiter {

    /**
     * 每秒钟访问上限
     * @param
     * @date 2023/1/19 14:26
     * @return int
     **/
    int count() default 10;

    String msg() default "超出qps限制";
}
